/*
 * Copyright (c) 2021, 2022, yzfh.cn All rights reserved.
 *
 */
package com.ly.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author yzfh
 * @Date 2022/03/07 星期一 15:09:40
 */
@org.springframework.stereotype.Controller
@RequestMapping("t1")
public class ControllerTest1 implements Controller {

    @Override
    @RequestMapping("h1")
    public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("test");
        modelAndView.addObject("msg","这是一个测试内容");
        return modelAndView;
    }
}
